package org.demo.pattern.vistor;
/**
 * 
 * @author  
 * @date    2011-5-17
 * @file    org.demo.pattern.vistor.StringElement.java
 */
public class StringElement implements Visitable{

	private String value;
	
	public StringElement(String str){
		value = str;
	}
	
	public String getValue(){
		return value;
	}
	
	@Override
	public void accept(Visitor visitor) {
		visitor.visitString(this);
	}

}
